package com.ifugle.rap.application.service;

import com.ifugle.rap.application.api.UserBaseApi;
import com.ifugle.rap.application.mapper.UserBaseMapper;
import com.ifugle.rap.application.model.UserBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserBaseService implements UserBaseApi{

    @Autowired
    UserBaseMapper userBaseMapper;


    @Override
    public int deleteByPrimaryKey(Long id) {
        return userBaseMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserBase record) {
        return userBaseMapper.insert(record);
    }

    @Override
    public int insertSelective(UserBase record) {
        return userBaseMapper.insertSelective(record);
    }

    @Override
    public UserBase selectByPrimaryKey(Long id) {
        return userBaseMapper.selectByPrimaryKey(id);
    }

    @Override
    public UserBase selectByUserId(Long userId) {
        return userBaseMapper.selectByUserId(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserBase record) {
        return userBaseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserBase record) {
        return userBaseMapper.updateByPrimaryKey(record);
    }
}
